package cn.iocoder.yudao.module.design.convert.flowtask;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.flowtask.vo.*;
import cn.iocoder.yudao.module.design.dal.dataobject.flowtask.FlowTaskDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 待办任务 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface FlowTaskConvert {

    FlowTaskConvert INSTANCE = Mappers.getMapper(FlowTaskConvert.class);

    FlowTaskDO convert(FlowTaskCreateReqVO bean);

    FlowTaskDO convert(FlowTaskUpdateReqVO bean);

    FlowTaskRespVO convert(FlowTaskDO bean);
    FlowTaskPageRespVO convertPageRes(FlowTaskDO bean);
    List<FlowTaskRespVO> convertList(List<FlowTaskDO> list);

    PageResult<FlowTaskRespVO> convertPage(PageResult<FlowTaskDO> page);

    List<FlowTaskExcelVO> convertList02(List<FlowTaskDO> list);

}
